package t;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class TTest {

    public static void main(String[] args) {

        TUtil tUtil = new TUtil();
        List<Map<String, Object>> list1 = new ArrayList<>();
        Map<String, Object> map1 = new HashMap<>();
        map1.put("name", "a");
        Map<String, Object> map2 = new HashMap<>();
        map2.put("name", "b");
        list1.add(map1);
        list1.add(map2);
        List ts = tUtil.getTs(list1, ABean.class);
        System.out.println(ts);

        System.out.println("==============================================");

        List<Map<String, Object>> list2 = new ArrayList<>();
        Map<String, Object> map11 = new HashMap<>();
        map11.put("age", 12);
        Map<String, Object> map21 = new HashMap<>();
        map21.put("age", 15);
        list2.add(map11);
        list2.add(map21);
        List ts2 = tUtil.getTs(list2, BBean.class);
        System.out.println(ts2);
    }

}
